package com.member.shop.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.member.common.annotation.Excel;
import com.member.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.math.BigDecimal;

/**
 * 充值套餐列表对象 sys_biz_recharge
 *
 * @author lixinchen
 * @date 2024-05-09
 */
@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_biz_recharge")
public class SysBizRecharge extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 自增ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 套餐名称
     */
    @Excel(name = "套餐名称")
    private String name;

    /**
     * 充值金额
     */
    @Excel(name = "充值金额")
    private BigDecimal rechargePrice;

    /**
     * 赠送金额
     */
    @Excel(name = "赠送金额")
    private BigDecimal givePrice;

    /**
     * 排序值
     */
    @Excel(name = "排序值")
    private Long orderNum;

    /**
     * 是否发布(0:已发布，1:未发布)
     */
    @Excel(name = "是否发布(0:已发布，1:未发布)")
    private Integer displayed;
    /**
     * 赠送类型（0 余额 1 优惠券）
     */
    @Excel(name = "赠送类型（0 余额 1 优惠券）")
    private Integer giveType;
    /**
     * 优惠券id
     */
    @Excel(name = "优惠券id")
    private Long couponId;

    @TableField(exist = false)
    private SysBizCoupon coupon;

}
